import request from '@/utils/request'

// 获取所有工程
export function listAllProject(query) {
  return request({
    url: '/engineering/engineering/listAll',
    method: 'get',
    params: query
  })
}

// 查询单条资质信息
export function getProject(id) {
  return request({
    url: `/engineering/engineering/${id}`,
    method: 'get'
  })
}
export function listProject(query) {
  return request({
    url: '/engineering/engineering/list',
    method: 'get',
    params: query
  })
}
// 添加
export function addProject(data) {
  return request({
    url: '/engineering/engineering',
    method: 'post',
    data
  })
}
// 修改
export function updateProject(data) {
  return request({
    url: '/engineering/engineering',
    method: 'put',
    data
  })
}
// 删除
export function delProject(id) {
  return request({
    url: `/engineering/engineering/${id}`,
    method: 'delete'
  })
}

//导出
export function exportProject(query) {
  return request({
    url: '/engineering/engineering/export',
    method: 'get',
    params: query
  })
}